import { request, RequestEnum, ContentTypeEnum } from "@/utils/request.js"

// TODO: 这一部分是给用户端使用的？

// 添加订单
export const reqAddOrder = (data, ids) => request(`/order/add/${ids}`, RequestEnum.POST, data)

// 删除订单
export const reqDeleteOrder = id => request(`/order/delete/${id}`, RequestEnum.DELETE)

// 分页查询订单
export const reqOrderPage = data => request(`/order/select`, RequestEnum.GET, data)

// 修改订单
export const reqUpdateOrder = data => request(`/order/update`, RequestEnum.PUT, data)